<?php
$starttime = microtime(true);
include('./include/Classes/Core.class.php');
//Co::$debug = E_ALL;
Co::$time_zone = 'Asia/Shanghai';
Co::init();

//Co::Config('Sys', array('host'=>'localhost', 'db_name'=>'test','db_user'=>'root','db_pass'=>'123456'));

//$_CONFIGS = Co::Config('sys');

//debug($_CONFIGS);

$router = new Router();
$router->init(array(
	'default' => array(
		'controller'=> 'controller',
		'action'	=> 'action',
		'param'		=> 'param',
		'params'	=> 'params',
	),
	'rule'	 => 'controller-action-param.html',
));

$dispath = new Dispatch( $router );
$endtime = microtime(true);

echo '<br /><hr /><div align="center">耗时<span style="color:#FD8800">';
echo ($endtime - $starttime) * 100;
echo '</span>毫秒</div>';
?>